<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>国家管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script src="<{$config.weburl}>/script/my_lightbox.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
<div class="container">
    <div class="flow">
        <div class="itemtitle">
            <h3>国家管理</h3>
        </div>
    </div>
    
    <div class="h35"></div>
    <{if "1"!=$edit}>

    <form action="?m=product&s=product.php<{$url}>" method="post" id="form" name="form">
    <input type="hidden" name="act" value="op" />
    <input type="hidden" name="type" value="" />
    <table class="table product">

        <tbody>
            <tr class="header">
                <!-- <th width="1"></th> -->
                <th width="40">国家编号</th>
                <th >国家名称</th>
                <th >国家国旗</th>
                <th width="15"></th>
            </tr>
            <{foreach item=v from=$list}>
            <tr >
                <td><{$v.id}></td>
                <td><{$v.catname}></td>
                <td>
                    <a>
                        <img class="img" alt="<{$v.catname}>" src="<{$v.pic}>" width="60" />
                    </a>
                </td>
                <td>
                <a href="?m=product&s=country.php&edit=<{$v.id}>"><{$editimg}></a>
                </td>
            </tr>
            <{foreachelse}>
            <tr>
                <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
            </tr>
            <{/foreach}>
        </tbody>
    </table>
    </form>
    <{else}>
    <form method="post" action="" enctype="multipart/form-data" onsubmit="return check_value();">
        <table class="table" id="base">
            <tbody>
            <tr>
                <td>国家</td>
                <td><{$info.catname}></td>
            </tr>
            <tr>
                <td>国家图标</td>
                <td>
                    <input name="guojiapic" class="w350" type="text" id="guojiapic" value="<{$info.pic}>" />
                    [<a href="javascript:uploadfile('上传LOGO','guojiapic',60,60,'tags')">上传</a>]
                    [<a href="javascript:preview('guojiapic');">预览</a>]
                    [<a onclick="javascript:$('#guojiapic').val('');" href="#">删除</a>] <span class="bz"></span>
                </td>
            </tr>
            </tbody>
        </table>
        <table>
            <tr>
                <td colspan="2" style="border-top:1px dotted #DEEFFB;">
                    <input type="submit" value="<{$lang.submit}>" class="submit"/>
                    <input type="hidden" name="id" value="<{$id}>"/>
                </td>
            </tr>
        </table>
    </form>
    <{/if}>
</div>

</body>
</html>